<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>isNegativeZero</title>
</head>

<body>
    <script>
        const isNegativeZero = val => val === 0 && 1 / val === -Infinity;
        document.write(`isNegativeZero(-0)的结果是:${isNegativeZero(-0)}`)
    </script>
</body>

</html>